package com.hison.tandainbao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hison.tandainbao.entiy.pojo.domain.TbJob;
import com.hison.tandainbao.entiy.pojo.dto.AddJob;
import com.hison.tandainbao.entiy.pojo.dto.JobInfo;
import com.hison.tandainbao.response.ResponseResult;
import org.springframework.web.bind.annotation.RequestParam;

/**
* @author hison
* @description 针对表【tb_job】的数据库操作Service
* @createDate 2024-03-30 14:40:27
*/
public interface TbJobService extends IService<TbJob> {

    ResponseResult getAll();

    ResponseResult getJobByName(String jobName);

    ResponseResult getJobByJobId(String jobId);

    ResponseResult updateJobStatus(String status, String jobId);

    ResponseResult addJob(AddJob job);

    ResponseResult updateJob(JobInfo jobInfo);

    ResponseResult deleteJob(String jobId);

    ResponseResult getAllByAdmin( int current,  int total);

    ResponseResult updateJobStatusByAdmin(String jobId,String status);

    ResponseResult getMyJobInfoAll();
}
